package com.lezhi.socialgram.model.sys;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.lezhi.socialgram.annotation.Table;
import com.lezhi.socialgram.util.Param;

import javax.validation.constraints.NotNull;

/**
 * Created by daizhen on 2017/4/5.
 */
@Table(prefix = Param.T_USER_PUSH_TABLE_PREFIX)
public class UserPush {

    private String table;

    @NotNull(message = "用户id不能为null")
    private Long userId;

    private Integer notifyWhenSomeoneLikeMe = 1;

    private Integer notifyWhenSomeoneSentMsgToMe = 1;

    private Integer notifyWhenSomeoneGrantToMe = 1;

    private Integer notifyWhenSomeoneMentionMe = 1;

    public UserPush() {
    }

    public UserPush(String table, Long userId) {
        this.table = table;
        this.userId = userId;
    }

    @JsonIgnore
    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getNotifyWhenSomeoneLikeMe() {
        return notifyWhenSomeoneLikeMe;
    }

    public void setNotifyWhenSomeoneLikeMe(Integer notifyWhenSomeoneLikeMe) {
        this.notifyWhenSomeoneLikeMe = notifyWhenSomeoneLikeMe;
    }

    public Integer getNotifyWhenSomeoneSentMsgToMe() {
        return notifyWhenSomeoneSentMsgToMe;
    }

    public void setNotifyWhenSomeoneSentMsgToMe(Integer notifyWhenSomeoneSentMsgToMe) {
        this.notifyWhenSomeoneSentMsgToMe = notifyWhenSomeoneSentMsgToMe;
    }

    public Integer getNotifyWhenSomeoneGrantToMe() {
        return notifyWhenSomeoneGrantToMe;
    }

    public void setNotifyWhenSomeoneGrantToMe(Integer notifyWhenSomeoneGrantToMe) {
        this.notifyWhenSomeoneGrantToMe = notifyWhenSomeoneGrantToMe;
    }

    public Integer getNotifyWhenSomeoneMentionMe() {
        return notifyWhenSomeoneMentionMe;
    }

    public void setNotifyWhenSomeoneMentionMe(Integer notifyWhenSomeoneMentionMe) {
        this.notifyWhenSomeoneMentionMe = notifyWhenSomeoneMentionMe;
    }
}
